package com.shioirikukuri.service.impl;

import com.shioirikukuri.entity.DiningTable;
import com.shioirikukuri.mapper.DiningTableMapper;
import com.shioirikukuri.service.IDiningTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DiningTableServiceImpl implements IDiningTableService {

	@Autowired
	private DiningTableMapper diningTableMapper;

	@Override
	public List<DiningTable> getAllDiningTables() {
		return diningTableMapper.selectAllDiningTables();
	}

	@Override
	public DiningTable getDiningTableById(Long tableId) {
		return diningTableMapper.selectDiningTableById(tableId);
	}

	@Override
	public void createDiningTable(DiningTable diningTable) {
		diningTableMapper.insertDiningTable(diningTable);
	}

	@Override
	public void updateDiningTable(DiningTable diningTable) {
		diningTableMapper.updateDiningTable(diningTable);
	}

	@Override
	public void deleteDiningTableById(Long tableId) {
		diningTableMapper.deleteDiningTableById(tableId);
	}


	@Override
	public List<DiningTable> getDiningTableByType(String tableType) {
		return null;
	}

}